<?php
require  "../../vendor/autoload.php";

use Menory\Standard\Sms\AbstractSMSCenter;
use Menory\Standard\Sms\InterfaceAuth;

class SMSCenter extends AbstractSMSCenter {

    /**
     * 发送短信
     * @param $messageType
     * @param $phone
     * @return mixed
     */
    public function sendMessage($messageType, $phone) {

        return [$messageType, $phone];

    }

}

class Auth implements InterfaceAuth {

    /**
     * @param $request
     * @return string
     */
    function genSign($request) {

        return "###";

    }

}

$auth = new Auth();
$smsCenter = new SMSCenter($auth);
$tmp = $smsCenter->sendMessage("register", "18122711047");
var_dump($tmp);

